package cn.com.huzo.model.entities.trade;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 化检日记账明细---合格证明细记录实体类
 * <p>
 * @author 范学春
 */
public class InspectionJournalLinesCertificationLinesEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -343274449207120750L;
    private String LinesId;
    private Long HeaderId;
    private String CertificationLinesId;
    private String IsPass;                   // 合格标记
    private String Payer;                    // 费用承担
    private Long MoId;
    private String NoOfContract;
    private String ShippingMarkNo;           // 子合同号（唛头号）
    private Long ProductId;
    private String ProductName;
    private Long ColourId;
    private Long MaterialId;
    private String MaterialName;
    private String MaterialFlag;            // 资材属性
    private Long UomId;
    private String UomName;
    private String MaterialColour;
    private String AdditionalItem;
    private String Description;             // 备注    

    public String getLinesId() {
        return LinesId;
    }

    public void setLinesId(String LinesId) {
        this.LinesId = LinesId;
    }

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public String getCertificationLinesId() {
        return CertificationLinesId;
    }

    public void setCertificationLinesId(String CertificationLinesId) {
        this.CertificationLinesId = CertificationLinesId;
    }

    public String getIsPass() {
        return IsPass;
    }

    public void setIsPass(String IsPass) {
        this.IsPass = IsPass;
    }

    public String getPayer() {
        return Payer;
    }

    public void setPayer(String Payer) {
        this.Payer = Payer;
    }

    public Long getMoId() {
        return MoId;
    }

    public void setMoId(Long MoId) {
        this.MoId = MoId;
    }

    public String getNoOfContract() {
        return NoOfContract;
    }

    public void setNoOfContract(String NoOfContract) {
        this.NoOfContract = NoOfContract;
    }

    public String getShippingMarkNo() {
        return ShippingMarkNo;
    }

    public void setShippingMarkNo(String ShippingMarkNo) {
        this.ShippingMarkNo = ShippingMarkNo;
    }

    public Long getProductId() {
        return ProductId;
    }

    public void setProductId(Long ProductId) {
        this.ProductId = ProductId;
    }

    public String getProductName() {
        return ProductName;
    }

    public void setProductName(String ProductName) {
        this.ProductName = ProductName;
    }

    public Long getColourId() {
        return ColourId;
    }

    public void setColourId(Long ColourId) {
        this.ColourId = ColourId;
    }

    public Long getMaterialId() {
        return MaterialId;
    }

    public void setMaterialId(Long MaterialId) {
        this.MaterialId = MaterialId;
    }

    public String getMaterialName() {
        return MaterialName;
    }

    public void setMaterialName(String MaterialName) {
        this.MaterialName = MaterialName;
    }

    public String getMaterialFlag() {
        return MaterialFlag;
    }

    public void setMaterialFlag(String MaterialFlag) {
        this.MaterialFlag = MaterialFlag;
    }

    public Long getUomId() {
        return UomId;
    }

    public void setUomId(Long UomId) {
        this.UomId = UomId;
    }

    public String getUomName() {
        return UomName;
    }

    public void setUomName(String UomName) {
        this.UomName = UomName;
    }

    public String getMaterialColour() {
        return MaterialColour;
    }

    public void setMaterialColour(String MaterialColour) {
        this.MaterialColour = MaterialColour;
    }

    public String getAdditionalItem() {
        return AdditionalItem;
    }

    public void setAdditionalItem(String AdditionalItem) {
        this.AdditionalItem = AdditionalItem;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof InspectionJournalLinesCertificationLinesEntity)) {
            return false;
        }

        final InspectionJournalLinesCertificationLinesEntity that = (InspectionJournalLinesCertificationLinesEntity) o;

        return new EqualsBuilder()
                .append(this.getLinesId(), that.getLinesId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getLinesId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
